package ZiXi;

import java.util.Random;
import java.util.Scanner;

public class zixi06 {
    public static void main(String[] args) {
        int[] arr=new int[5];
        Scanner sc=new Scanner(System.in);


        Random k=new Random();
        int kk=k.nextInt(9)+2;
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请输入1-60之间是数字");
            int num=sc.nextInt();
            arr[i]=num;

        }
        System.out.println("生成的随机数为："+kk);
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]%kk!=0){
                System.out.print("符合条件的元素为");
                System.out.print(arr[i]+" " );

            }
        }



    }
}
